﻿CREATE TABLE [dbo].[DPSWorkOrderByBatchT](
	[BatchID] [varchar](30) NOT NULL,
	[Owner] [varchar](30) NOT NULL,
	[WONo] [varchar](30) NOT NULL,
	[WOType] [varchar](30) NULL,
	[WOCutOffTime] [datetime] NULL,
	[SKUNo] [varchar](30) NULL,
	[Model] [varchar](30) NULL,
	[Priority] [int] NULL,
	[WOQty] [decimal](18, 0) NULL,
	[OpenQty] [decimal](18, 0) NULL,
	[FinishedQty] [decimal](18, 0) NULL,
	[WOCreateDate] [datetime] NULL,
	[BuildDate] [varchar](20) NULL,
	[ProdLine] [varchar](30) NULL,
	[IsReleased] [varchar](1) NULL,
	[SONo] [varchar](30) NULL,
	[SOItemNo] [varchar](30) NULL,
	[SOType] [varchar](30) NULL,
	[SOETD] [datetime] NULL,
	[WOStatus] [varchar](20) NULL,
	[RefNo1] [varchar](100) NULL,
	[RefNo2] [varchar](100) NULL,
	[RefNo3] [varchar](100) NULL,
	[ModifiedBy] [varchar](30) NULL,
	[ModifiedDate] [datetime] NULL,
 CONSTRAINT [PK_DPSWORKORDERBYBATCHT] PRIMARY KEY CLUSTERED 
(
	[BatchID] ASC,
	[Owner] ASC,
	[WONo] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]


